package com.laixu.proxy;

public class MyProxyFactoryTest {
    public static void main(String[] args) {
        // 创建目标对象
        Singer target = new Target();

        // 通过工厂获取代理对象
        Singer proxy = MyProxyFactory.getProxy(target);

        // 调用代理方法
        proxy.sing();
    }
}